package com.qinggeng.project.system.service;

import com.qinggeng.project.api.dto.UserAccountConsumptionDTO;
import com.qinggeng.project.system.domain.UserAccountConsumptionMonth;
import com.qinggeng.project.system.dto.SysUserAccountConsumptionMonthDTO;

import java.util.List;

public interface UserAccountConsumptionMonthService {

    boolean checkUserAccountConsumption(UserAccountConsumptionMonth userAccountConsumption);


    boolean insertUserAccountConsumption(UserAccountConsumptionMonth userAccountConsumption);


    UserAccountConsumptionMonth getUserAccountConsumption(UserAccountConsumptionMonth userAccountConsumption);

    boolean addUpdateUserAccountConsumption(UserAccountConsumptionDTO userAccountConsumption);

    boolean subUpdateUserAccountConsumption(UserAccountConsumptionDTO userAccountConsumption);


    boolean  goToSmallChange(UserAccountConsumptionDTO userAccountConsumption);

    boolean  goToSmallChangeClean(UserAccountConsumptionDTO userAccountConsumption);

    //上个月
    List<UserAccountConsumptionMonth> listLastMonthUserAccountConsumptionMonth();


    //上个月
    List<UserAccountConsumptionMonth> listThisMonthUserAccountConsumptionMonth();

    //根据 id 修改统计年费用的状态
    boolean updateUserAccountYearConsumptionStatus(Long id);

    //后台 用户月消费
    List<UserAccountConsumptionMonth> listSysThisMonthUserAccountConsumptionMonth(SysUserAccountConsumptionMonthDTO dto);


    //钱包统计的时候 如果没有数据 直接计算
    boolean updateUserAccountConsumption(Long userId);


}
